import request from '@/utils/request'

export function GetMyArticleInfo() {
    return request({
        url: 'article/my_articles',
        method: 'get'
    })
}

export function GetLevelList(){
    return request({
        url: 'article/level_list',
        method: 'get'
    })
}

export function SearchMyArticle(searchParams){
    return request({
        url: 'article/my_articles',
        method: 'get',
        params: searchParams
    })
}

export function GetArticleStatusList(){
    return request({
        url: 'article/status',
        method: 'get'
    })
}

export function AddArticle(data){
    return request({
        url: 'article/my_article',
        method: 'post',
        data
    })
}